Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

UGH #6

Closed
wants to merge 2 commits into from
Closed

UGH #6

wants to merge 2 commits into from

Conversation

dalehamel
Copy link
Member

sad panda

@dwradcliffe @andrewjamesbrown

tl;dr chef-zero returns non-mash data for data bags. because it's being braindead and losing the data bag type. It treats the data bag data thus as a plain hash instead of a mash.

Our code depends on it being a mash.

this is dirty, i know, but because of chef/chef-zero#147 this is necessary.

@dalehamel
Copy link
Member Author

@dwradcliffe
Copy link
Member

I'm fine with this for now but let's push to get this fixed upstream.

@@ -0,0 +1,33 @@
# because https://github.com/chef/chef-zero/pull/147/files will never get merged
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you think that PR will never get merged?

@andrewjamesbrown
Copy link
Contributor

This makes me 🐼, and I understand why it's required. I agree with @dwradcliffe - let's push to get chef/chef-zero#147 merged.

@dalehamel
Copy link
Member Author

actually, this won't work with test kitchen because chef-zero isn't running on the host.... hm...

@dalehamel
Copy link
Member Author

i think we should deal with this on a case by case basis, and convert symbolic references to string references for hash keys... gives us an excuse to fix it when things break.

Then again, what about when this breaks silently? Or when an upstream cookbook references data bags assuming they will be a mash?

The only alternative i can think of is to include the monkey patch in our cookbooks, assuming that it will work in that context.... but that's horrific.

@dalehamel dalehamel closed this Jun 24, 2016
@dalehamel dalehamel reopened this Jun 24, 2016
@dalehamel dalehamel mentioned this pull request Jun 24, 2016
@dalehamel dalehamel closed this Jun 24, 2016
@dalehamel dalehamel deleted the monkey-patch-mash branch June 24, 2016 18:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants